const a = [
    {
        id: '111',
        like: 10
    },
    {
        id: '222',
        like: 22
    },
    {
        id: '333',
        like: 33
    }
]

const b = [
    {
        id: '222',
        like: 22
    },
    {
        id: '333',
        like: 35
    },
    {
        id: '444',
        like: 44
    },
    {
        id: '555',
        like: 55
    }
]

    let res=[]
    const com=[...a,...b]
    com.forEach((obj)=>{
        const existing=res.find((item)=>item.id===obj.id)
        if(existing){
            existing.like=obj.like
        }else{
            res.push({...obj})
        }
})
console.log(res)